package com.github.kotvertolet.youtubejextractor.models.newModels;

import com.google.gson.annotations.SerializedName;
import ohos.utils.Parcel;
import ohos.utils.Sequenceable;

import java.io.Serializable;

public class UiActions implements Sequenceable, Serializable {

    @SerializedName("hideEnclosingContainer")
    private boolean isHideEnclosingContainer;

    public static final Sequenceable.Producer<UiActions> CREATOR = new Producer<UiActions>() {
        @Override
        public UiActions createFromParcel(Parcel parcel) {
            // Initialize an instance first, then do customized unmarshlling.
            UiActions uiActions = new UiActions();
            uiActions.unmarshalling(parcel);
            return uiActions;
        }
    };

    public UiActions() {
    }

    @Override
    public boolean marshalling(Parcel parcel) {
        parcel.writeBoolean(this.isHideEnclosingContainer);
        return true;
    }

    @Override
    public boolean unmarshalling(Parcel parcel) {
        this.isHideEnclosingContainer=parcel.readBoolean();
        return true;
    }

    @Override
    public String toString() {
        return "UiActions{" +
                "isHideEnclosingContainer=" + isHideEnclosingContainer +
                '}';
    }

    public boolean isHideEnclosingContainer() {
        return isHideEnclosingContainer;
    }

    public void setHideEnclosingContainer(boolean hideEnclosingContainer) {
        isHideEnclosingContainer = hideEnclosingContainer;
    }
}
